/******************************************************************************
 * Filename: Guitar.cpp
 *
 * Copyright 2012, Research In Motion Ltd
 *
 * Author: Gang Li
 *
 * Created: Jul 7, 2012
 *
 * Description:
 *
 *****************************************************************************/

#include "Guitar.h"
#include <stdio.h>

static const char _s[] = "Guitar";

Guitar::Guitar() : base_tune(200), s1(* this, 10), s2(* this, 20), s3(* this, 30)
{
    printf("Guitar()\n");
    data = base_tune;
}

Guitar::~Guitar()
{
    printf("~Guitar()\n");
}

void Guitar::play() const
{
    printf("Guitar::play, %d, %d, %d\n",
            s1.GetTune(),
            s2.GetTune(),
            s3.GetTune());
}

const char * Guitar::ToString()
{
    return _s;
}
